// ignore_for_file: prefer_const_constructors, avoid_unnecessary_containers, avoid_print

import 'package:flutter/material.dart';

import 'package:junyeyishu/utils/utils.dart';
import 'package:junyeyishu/widgets/QGWidget.dart';

class QGLogOut extends StatefulWidget {
  const QGLogOut({super.key});

  @override
  State<QGLogOut> createState() => _QGLogOutState();
}

class _QGLogOutState extends State<QGLogOut> {
  @override
  Widget build(BuildContext context) {
    return Stack(
      children: [
        GestureDetector(
            onTap: () {
              Navigator.of(context).pop();
            },
            child: Container(
               width: kScreenWidth,
              height: kScreenHeight,
            )),

            Positioned(left: 25.rpx, top: 150.5.rpx,right: 25.rpx, child: 
            Column(
              children: [
                QGImage(
                  asset: "huode",
                  width: 350.rpx,
                )
              ],
            )
            ),

            Positioned(left: 25.rpx, top: 290.5.rpx,right: 25.rpx, child: 
                Column(
                  children: [
                   Text('弹窗显示一次',style: TextStyle(fontSize: 20,color: Color(0XFF111111),fontWeight: FontWeight.bold)),
                   SizedBox(height: 30.rpx,),
                   GestureDetector(
                    onTap: (){
                     Navigator.of(context).pop();
                    },
                    child: Container(
                      alignment: 
                      Alignment.center,
                      width: 280.rpx,
                      height: 50.rpx,
                      decoration: BoxDecoration(
                        color: Color(0XFF4AE3FF),
                        borderRadius: BorderRadius.circular(50.rpx)
                      ),
                      child:Text('确定',style: TextStyle(fontSize: 16,color: Color(0XFF111111),fontWeight: FontWeight.bold)),
                      )
                    ,
                   )
                  ],
                )
            ),
      ],
    );
  }
 
}
